package com.liujit.standard.basis.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liujit.standard.basis.admin.model.SysMenu;
import com.liujit.standard.basis.admin.model.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description 系统用户Mapper
 * @Author LiuJun
 * @Date 2021-03-25 17:12:35
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 通过用户id查询用户路由权限
     *
     * @param userId
     * @param menuType
     * @return
     */
    List<SysMenu> selectRouters(@Param("userId") Long userId, @Param("menuType") Integer menuType);

}